﻿
@{
    ViewBag.Title = "InternalError";
}

<h2>InternalError</h2>

@if (typeof(HandleErrorInfo) == Model.GetType())
{
    var error = Model as HandleErrorInfo;
    <div>
        @Newtonsoft.Json.JsonConvert.SerializeObject(new { error.ControllerName,error.ActionName,error.Exception?.Message })
</div>
}

@if (ViewBag.Exception != null)
{
    var error = ViewBag.Exception as Exception;
    <div>@error.Message</div>
}


